/*
 * Copyright (C) 2011 Macambira Team
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
package com.googlecode.entity;

import com.googlecode.entity.Disciplina;
import com.googlecode.entity.Professor;
/**
 * Classe responsavel por conter as informacoes de uma turma
 *
 * @version 0.1 29 Set 2011
 * @author Tony Silva | tony.silva@dce.ufpb.br
 */
public class Turma {

    private String id;
    private String nome;
    private Disciplina disciplina;
    private Professor professor;

    public Turma() {
        this("@NOTSET","@NOTSET", null, null);
    }

    public Turma(String id, String nome, Disciplina disciplina, Professor professor) {
        this.id = id;
        this.nome = nome;
        this.disciplina = disciplina;
        this.professor = professor;
    }

    public Disciplina getDisciplina() {
        return disciplina;
    }

    public String getId() {
        return id;
    }

    public String getNome() {
        return nome;
    }

    public Professor getProfessor() {
        return professor;
    }

    public void setDisciplina(Disciplina disciplina) {
        this.disciplina = disciplina;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setNome(String nome) {
        this.nome = nome;
    }

    public void setProfessor(Professor professor) {
        this.professor = professor;
    }

    @Override
    public String toString() {
        return "ID " + id + "\nnome" + nome + "\nDisciplina " + disciplina + "\nProfessor " + professor;
    }
}